

#ifndef __M_LEVEL_H__
#define __M_LEVEL_H__
#include <iostream>

class LogLevel
{
    public: 
        enum struct value
        {
            Unknow=0,
            Debug,
            Info,
            Warn,
            Error,
            Fatal,
            Off
        };
        static const char* toString(LogLevel::value l)
        {
            switch (l)
            {
            case value::Debug:return "Debug";
            case value::Info:return "Info";
            case value::Warn:return "Warn";
            case value::Error:return "Error";
            case value::Fatal:return "Fatal";
            case value::Off:return "Off";
            }
            return "Unknow";
        }
};

#endif